﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000DD RID: 221
	internal class InvalidExtHeader : IExtHeaderDecoder
	{
		// Token: 0x0600033A RID: 826 RVA: 0x0000C38E File Offset: 0x0000A78E
		private InvalidExtHeader()
		{
		}

		// Token: 0x0600033B RID: 827 RVA: 0x0000C396 File Offset: 0x0000A796
		public ExtensionHeader Read(byte[] bytes, int offset, out int readSize)
		{
			throw new InvalidOperationException(string.Format("code is invalid. code:{0} format:{1}", bytes[offset], MessagePackCode.ToFormatName(bytes[offset])));
		}

		// Token: 0x040000F8 RID: 248
		internal static readonly IExtHeaderDecoder Instance = new InvalidExtHeader();
	}
}
